package com.itlong.cloud.commons.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * <desc>
 *      系统操作日志转移冷表数据
 * </desc>
 *
 * @createDate 2018/1/18
 */
@Mapper
@Repository
public interface ITimeTaskOfOperationLogDao{

    /**
     * <desc>
     *     系统操作日志定时转移至冷表数据
     * </desc>
     * @return
     * @author cuiduanwu
     * @createDate 2018/1/18
     */
    Integer moveOperationLogToColdData();

    /**
     * <desc>
     *     系统操作日志定时转移后删除
     * </desc>
     * @return
     * @author cuiduanwu
     * @createDate 2018/1/18
     */
    Integer timeTaskDelOperationLog();

    /**
     * <desc>
     *      转移数据
     * </desc>
     *
     * @author wangzhi
     * @createDate 2019/09/04
     */
    void moveDataToColdTable();

    /**
     * <desc>
     *      清理数据
     * </desc>
     *
     * @author wangzhi
     * @createDate 2019/09/04
     */
    void deleteData();
}
